﻿<%@ Page Language="vb" ContentType="text/xml" AutoEventWireup="false" CodeBehind="RSS.aspx.vb" Inherits="Dabke.RSS" %>
<%@ Import Namespace="System.Data" %>

        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
            SelectCommand="SELECT [ID], [Dabka_Name], [Dabka_Country], [Dabka_Description], [Dabka_Gender], [Dabka_Picture], [Dabka_Members], [Dabka_Ryhthm], [Dabka_URL] FROM [Dabka]">
        </asp:SqlDataSource>

<asp:Repeater id="rptRSS" runat="server" DataSourceID="SqlDataSource1">
  <HeaderTemplate>
    <rss version="2.0">
      <channel>
        <title>What is new ? </title>
        <description>Military Life..... Join us</description>
  </HeaderTemplate>
  <ItemTemplate>
        <item>
          <title><%# FormatForXML(DataBinder.Eval(Container.DataItem, "Dabka_Name"))%></title>
          <description><%# FormatForXML(DataBinder.Eval(Container.DataItem, "Dabka_Description"))%></description>
          <link> Details.aspx?D=<%# FormatForXML(DataBinder.Eval(Container.DataItem, "ID"))%></link>
          <author><%# FormatForXML(DataBinder.Eval(Container.DataItem, "Dabka_Members"))%></author>
          <pubDate><%# FormatForXML(DataBinder.Eval(Container.DataItem, "Dabka_Country"))%></pubDate>
        </item>
  </ItemTemplate>
  <FooterTemplate>
      </channel>
    </rss>  
  </FooterTemplate>
</asp:Repeater>




